import request from '@/utils/request'

// 数据列表
export function listData(query) {
  return request({
    url: '/basic/warehouse/inventory/',
    method: 'get',
    params: query
  })
}
//编辑
export function updateData(data) {
  return request({
    url: '/basic/warehouse/inventory/',
    method: 'put',
    params: data
  })
}
// 查询详细
export function getDetail(id) {
  return request({
    url: '/basic/warehouse/inventoryDetail/' + id,
    method: 'get'
  })
}

// 新增
export function createData(data) {
  return request({
    url: '/basic/warehouse/inventory/',
    method: 'post',
    data: data
  })
}

// 确定
export function confirmOrder(query) {
  return request({
    url: '/basic/warehouse/inventory/confirm',
    method: 'post',
    params:query
  })
}
// 删除
export function delOrder(id) {
  return request({
    url: '/basic/warehouse/inventory/' + id,
    method: 'delete',
  })
}
